<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">

                        <input id="id" name="id" th:value="${examinationBatch.id}" type="hidden">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">所属竞赛：</label>
                            <div class="col-sm-8">
                                <select id="competitionType" name="competitionType" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="1">教师组</option>
                                    <option value="2">学生中职组</option>
                                    <option value="3">学生高校组</option>
                                    <option value="4">国际组</option>
                                </select>
                                <input type="hidden" id="competitionTypes" th:value="${examinationBatch.competitionType}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">认证批次：</label>
                            <div class="col-sm-8">
                                <select id="cbatchId" name="cbatchId" class="form-control">
                                    <option value="">请选择</option>
                                    <option th:each="item : ${certificationBatch}" th:selected="${examinationBatch.cbatchId eq item.id}"
                                            th:value="${item.id}" th:text="${item.name}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">考试名称：</label>
                            <div class="col-sm-8">
                                <input id="name" name="name" th:value="${examinationBatch.name}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">赛项编号：</label>
                            <div class="col-sm-8">
                                <input id="competitionName" name="competitionName" th:value="${examinationBatch.competitionName}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">合格分数：</label>
                            <div class="col-sm-8">
                                <input id="passMark" name="passMark" th:value="${examinationBatch.passMark}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">考试类型：</label>
                            <div class="col-sm-8">
                                <input id="typeHidden" th:value="${examinationBatch.type}" class="form-control"
                                       type="hidden">
                                <select id="type" name="type" class="form-control">
                                    <option value="">请选择</option>

                                    <option value="3">理论竞赛</option>
                                </select>
                            </div>
                        </div>
                        <!--                        <div class="form-group">-->
                        <!--                            <label class="col-sm-3 control-label">状态：</label>-->
                        <!--                            <div class="col-sm-8">-->
                        <!--                                <input id="stateHidden" th:value="${examinationBatch.state}" class="form-control"-->
                        <!--                                       type="hidden">-->
                        <!--                                <select id="state" name="state" class="form-control">-->
                        <!--                                    <option value="">请选择</option>-->
                        <!--                                    <option value="0">待审核</option>-->
                        <!--                                    <option value="1">已通过</option>-->
                        <!--                                    <option value="2">未通过</option>-->
                        <!--                                    <option value="3">开始登录</option>-->
                        <!--                                    <option value="4">考试中</option>-->
                        <!--                                    <option value="5">已考完</option>-->
                        <!--                                    <option value="9">已删除</option>-->
                        <!--                                </select>-->
                        <!--                            </div>-->
                        <!--                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">总分数：</label>
                            <div class="col-sm-8">
                                <input id="totalScore" name="totalScore" th:value="${examinationBatch.totalScore}"
                                       class="form-control" type="text">
                            </div>
                        </div>

                        <div class="form-group" id="referrA">
                            <label class="col-sm-3 control-label">请选择理论裁判：</label>
                            <div class="col-sm-8">
                                <div id="refereeABox" class="examjudge xm-select-demo" ></div>
                                <input name="refereeA" class="examferrA" type="hidden" th:value="${examinationBatch.refereeA}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">选择工作人员：</label>
                            <div class="col-sm-8">
                                <div id="encipher" class="examjudge xm-select-demo" ></div>
                                <input name="encipher" class="encipher" type="hidden" th:value="${examinationBatch.encipher}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">开始时间：</label>
                            <div class="col-sm-8">
                                <input id="startTime" name="startTime"
                                       th:value="${examinationBatch.startTime} eq null ? '' : ${#dates.format(examinationBatch.startTime, 'yyyy-MM-dd HH:mm:ss')}"
                                       class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">结束时间：</label>
                            <div class="col-sm-8">
                                <input id="endTime" name="endTime"
                                       th:value="${examinationBatch.endTime} eq null ? '' : ${#dates.format(examinationBatch.endTime, 'yyyy-MM-dd HH:mm:ss')}"
                                       class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">批次类型：</label>
                            <div class="col-sm-8">
                                <input id="batchTypeHidden" th:value="${examinationBatch.batchType}" class="form-control"
                                       type="hidden">
                                <select id="batchType" name="batchType"  class="form-control">
                                    <option value="">请选择</option>
                                    <option value="1">考试测试</option>
                                    <option value="2">正式考试</option>
                                </select>
                            </div>
                        </div>

<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">考试类型：</label>-->
<!--                            <div class="col-sm-8">-->
<!--                                <input type="hidden" id="competitionTypeEcho" th:value="${examinationBatch.competitionType}">-->
<!--                                <select id="competitionType" name="competitionType" class="form-control">-->
<!--                                    <option value="">请选择</option>-->
<!--                                    <option value="1">教师组</option>-->
<!--                                    <option value="2">学生中职组</option>-->
<!--                                    <option value="3">学生高校组</option>-->
<!--                                </select>-->
<!--                            </div>-->
<!--                        </div>-->

<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">添加模板：</label>-->
<!--                            <div class="col-sm-8">-->
<!--                                <select id="templet" name="modileId" class="form-control"></select>-->
<!--                                <input type="hidden" id="moduleId" th:value="${examinationBatch.dispositionModule.moduleName}">-->
<!--                            </div>-->
<!--                        </div>-->

                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/xmSelect.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/examinationBatch/edit.js">
</script>
</body>
</html>
